OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man2 / getsockopt.2
index d292243..e321b19 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
 .\"
 .\"     $Id: getsockopt.2,v 1.1 1999/05/24 14:57:04 freitag Exp $
 .\"
@@ -39,7 +41,7 @@
 .\" Modified 1999 by Andi Kleen <ak@muc.de>.
 .\"     Removed most stuff because it is in socket.7 now.
 .\"
-.TH GETSOCKOPT 2 2008-12-03 "Linux" "Linux Programmer's Manual"
+.TH GETSOCKOPT 2 2014-04-28 "Linux" "Linux Programmer's Manual"
 .SH NAME
 getsockopt, setsockopt \- get and set options on sockets
 .SH SYNOPSIS
@@ -126,7 +128,7 @@ option is to be disabled.
 For a description of the available socket options see
 .BR socket (7)
 and the appropriate protocol man pages.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 On success, zero is returned.
 On error, \-1 is returned, and
 .I errno
@@ -166,7 +168,7 @@ The option is unknown at the level indicated.
 The argument
 .I sockfd
 is a file, not a socket.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 SVr4, 4.4BSD (these system calls first appeared in 4.2BSD),
 POSIX.1-2001.
 .\" SVr4 documents additional ENOMEM and ENOSR error codes, but does
@@ -197,11 +199,23 @@ See also
 .SH BUGS
 Several of the socket options should be handled at lower levels of the
 system.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR ioctl (2),
 .BR socket (2),
 .BR getprotoent (3),
 .BR protocols (5),
+.BR ip (7),
+.BR packet (7),
 .BR socket (7),
 .BR tcp (7),
+.BR udp (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/.