confusing pooka.
manpage improvements, sunshine returns.
This commit is contained in:
parent
6277e8688d
commit
e28378f7d1
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: sockopt.9,v 1.6 2009/08/03 19:57:40 rmind Exp $
|
||||
.\" $NetBSD: sockopt.9,v 1.7 2009/09/04 11:34:38 plunky Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2008 Iain Hibbert
|
||||
.\" All rights reserved.
|
||||
@ -23,7 +23,7 @@
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 28, 2008
|
||||
.Dd September 4, 2009
|
||||
.Dt SOCKOPT 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -49,8 +49,9 @@
|
||||
.Ft int
|
||||
.Fn sockopt_setint "struct sockopt *sopt" "int value"
|
||||
.Sh DESCRIPTION
|
||||
The sockopt structure is used to pass a socket option and associated
|
||||
value:
|
||||
The
|
||||
.Ft sockopt
|
||||
structure is used to pass a socket option and associated value:
|
||||
.Bd -literal -offset indent
|
||||
struct sockopt {
|
||||
int sopt_level; /* option level */
|
||||
@ -65,6 +66,13 @@ The internal storage is used for the common case of values up to integer
|
||||
size so that memory allocation is not required and sopt_data will point
|
||||
to this in that case.
|
||||
.Pp
|
||||
Rather than provide accessor functions, the
|
||||
.Ft sockopt
|
||||
structure is public and the contents are expected to be internally
|
||||
consistent, but the normal practice would be to use the appropriate methods
|
||||
for storage and retrieval of values where a known datatype is expected,
|
||||
as the size will be verified.
|
||||
.Pp
|
||||
Note: a sockopt structure may only be used for a single level/name/size
|
||||
combination.
|
||||
If the structure is to be re-used, it must be destroyed and re-initialized
|
||||
|
Loading…
Reference in New Issue
Block a user