1 '\" te
   2 .\"  Copyright 1989 AT&T  Copyright (c) 1996, Sun Microsystems, Inc.  All Rights Reserved
   3 .\" 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.
   4 .\" 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.
   5 .\" 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]
   6 .TH SOCKIO 7I "Nov 8, 1996"
   7 .SH NAME
   8 sockio \- ioctls that operate directly on sockets
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 #include <sys/sockio.h>
  13 .fi
  14 
  15 .SH DESCRIPTION
  16 .sp
  17 .LP
  18 The \fBioctls\fR listed in this manual page apply directly to sockets,
  19 independent of any underlying protocol. The \fBsetsockopt()\fR call (see
  20 \fBgetsockopt\fR(3SOCKET)) is the primary method for operating on sockets,
  21 rather than on the underlying protocol or network interface. \fBioctl\fRs for a
  22 specific network interface or protocol are documented in the manual page for
  23 that interface or protocol.
  24 .sp
  25 .ne 2
  26 .na
  27 \fB\fBSIOCSPGRP\fR\fR
  28 .ad
  29 .RS 15n
  30 The argument is a pointer to an \fBint\fR. Set the process-group \fBID\fR that
  31 will subsequently receive \fBSIGIO\fR or \fBSIGURG\fR signals for the socket
  32 referred to by the descriptor passed to \fBioctl\fR to the value of that
  33 \fBint\fR. The argument must be either positive (in which case it must  be a
  34 process \fBID)\fR or negative (in which case it must be a process group).
  35 .RE
  36 
  37 .sp
  38 .ne 2
  39 .na
  40 \fB\fBSIOCGPGRP\fR\fR
  41 .ad
  42 .RS 15n
  43 The argument is a pointer to an \fBint\fR. Set the value of that \fBint\fR to
  44 the process-group \fBID\fR that is receiving \fBSIGIO\fR or \fBSIGURG\fR
  45 signals for the socket referred to by the descriptor passed to \fBioctl\fR.
  46 .RE
  47 
  48 .sp
  49 .ne 2
  50 .na
  51 \fB\fBSIOCCATMARK\fR\fR
  52 .ad
  53 .RS 15n
  54 The argument is a pointer to an \fBint\fR. Set the value of that \fBint\fR to
  55 \fB1\fR if the read pointer for the socket referred to by the descriptor passed
  56 to \fBioctl\fR points to a mark in the data stream for an out-of-band message.
  57 Set the value of that \fBint\fR to \fB0\fR if the read pointer for the socket
  58 referred to by the descriptor passed to \fBioctl\fR  does not point to a mark
  59 in the data stream for an  out-of-band message.
  60 .RE
  61 
  62 .SH SEE ALSO
  63 .sp
  64 .LP
  65 \fBioctl\fR(2), \fBgetsockopt\fR(3SOCKET)