1 SOCKIO(7I)                      Ioctl Requests                      SOCKIO(7I)
   2 
   3 NAME
   4      sockio - ioctls that operate directly on sockets
   5 
   6 SYNOPSIS
   7      #include <sys/sockio.h>
   8 
   9 DESCRIPTION
  10      The ioctls listed in this manual page apply directly to sockets,
  11      independent of any underlying protocol.  The setsockopt(3SOCKET) call
  12      (see getsockopt(3SOCKET)) is the primary method for operating on sockets,
  13      rather than on the underlying protocol or network interface.  ioctls for
  14      a specific network interface or protocol are documented in the manual
  15      page for that interface or protocol.
  16 
  17      SIOCSPGRP    The argument is a pointer to an int.  Set the process-group
  18                   ID that will subsequently receive SIGIO or SIGURG signals
  19                   for the socket referred to by the descriptor passed to ioctl
  20                   to the value of that int.  The argument must be either
  21                   positive (in which case it must be a process ID) or negative
  22                   (in which case it must be a process group).
  23 
  24      SIOCGPGRP    The argument is a pointer to an int.  Get the value of that
  25                   int to the process-group ID that is receiving SIGIO or
  26                   SIGURG signals for the socket referred to by the descriptor
  27                   passed to ioctl.
  28 
  29      SIOCCATMARK  The argument is a pointer to an int.  Set the value of that
  30                   int to 1 if the read pointer for the socket referred to by
  31                   the descriptor passed to ioctl(2) points to a mark in the
  32                   data stream for an out-of-band message.  Set the value of
  33                   that int to 0 if the read pointer for the socket referred to
  34                   by the descriptor passed to ioctl does not point to a mark
  35                   in the data stream for an out-of-band message.
  36 
  37 SEE ALSO
  38      ioctl(2), getsockopt(3SOCKET)
  39 
  40 illumos                        October 29, 2017                        illumos