Print this page
6107 port_notify_t prefix mispelt in port_associate(3C)

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/port_associate.3c
          +++ new/usr/src/man/man3c/port_associate.3c
   1    1  '\" te
   2    2  .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
   3    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    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    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 PORT_ASSOCIATE 3C "Nov 9, 2007"
        6 +.TH PORT_ASSOCIATE 3C "Aug 8, 2015"
   7    7  .SH NAME
   8    8  port_associate, port_dissociate \- associate or dissociate the object with the
   9    9  port
  10   10  .SH SYNOPSIS
  11   11  .LP
  12   12  .nf
  13   13  #include <port.h>
  14   14  
  15   15  \fBint\fR \fBport_associate\fR(\fBint\fR \fIport\fR, \fBint\fR \fIsource\fR, \fBuintptr_t\fR \fIobject\fR,
  16   16       \fBint\fR \fIevents\fR, \fBvoid *\fR\fIuser\fR);
  17   17  .fi
  18   18  
  19   19  .LP
  20   20  .nf
  21   21  \fBint\fR \fBport_dissociate\fR(\fBint\fR \fIport\fR, \fBint\fR \fIsource\fR, \fBuintptr_t\fR \fIobject\fR);
  22   22  .fi
  23   23  
  24   24  .SH DESCRIPTION
  25      -.sp
  26   25  .LP
  27   26  The \fBport_associate()\fR function associates specific \fIevents\fR of a given
  28   27  \fIobject\fR with a \fIport\fR.  Only objects associated with a particular port
  29   28  are able to generate events that can be retrieved using \fBport_get\fR(3C) or
  30   29  \fBport_getn\fR(3C). The delivery event has its \fBportev_user\fR member set to
  31   30  the value specified in the \fIuser\fR parameter. If the specified object is
  32   31  already associated with the specified port, the \fBport_associate()\fR function
  33   32  serves to update the \fIevents\fR and \fIuser\fR arguments of the association.
  34   33  The \fBport_dissociate()\fR function removes the association of an object with
  35   34  a port.
↓ open down ↓ 4 lines elided ↑ open up ↑
  40   39  \fBPORT_SOURCE_FILE\fR. Objects of other types have type-specific association
  41   40  mechanisms. A \fBport_notify_t\fR structure, defined in \fB<port.h>\fR, is used
  42   41  to specify the event port and an application-defined cookie to associate with
  43   42  these event sources. See \fBport_create\fR(3C) and \fBsignal.h\fR(3HEAD).
  44   43  .sp
  45   44  .LP
  46   45  The \fBport_notify_t\fR structure contains the following members:
  47   46  .sp
  48   47  .in +2
  49   48  .nf
  50      -int       portntfy_port;  /* bind request(s) to port */
  51      -void      *portntfy_user; /* user defined cookie */
       49 +int       portnfy_port;  /* bind request(s) to port */
       50 +void      *portnfy_user; /* user defined cookie */
  52   51  .fi
  53   52  .in -2
  54   53  
  55   54  .sp
  56   55  .LP
  57   56  Objects of type \fBPORT_SOURCE_FD\fR are file descriptors. The event types for
  58   57  \fBPORT_SOURCE_FD\fR objects are described in \fBpoll\fR(2). At most one event
  59   58  notification will be generated per associated file descriptor.  For example, if
  60   59  a file descriptor is associated with a port for the \fBPOLLRDNORM\fR event and
  61   60  data is available on the file descriptor at the time the \fBport_associate()\fR
↓ open down ↓ 82 lines elided ↑ open up ↑
 144  143  descriptors shared after a call to \fBfork\fR(2). The process performing the
 145  144  first association with a port (parent or child process) is designated as the
 146  145  owner of the association. Only the owner of an association is allowed to
 147  146  dissociate the file descriptor from a port. The association is removed if the
 148  147  owner of the association closes the port .
 149  148  .sp
 150  149  .LP
 151  150  On NFS file systems, events from only the client side (local)
 152  151  access/modifications to files or directories will be delivered.
 153  152  .SH RETURN VALUES
 154      -.sp
 155  153  .LP
 156  154  Upon succesful completion, 0 is returned. Otherwise, \(mi1 is returned and
 157  155  \fBerrno\fR is set to indicate the error.
 158  156  .SH ERRORS
 159      -.sp
 160  157  .LP
 161  158  The \fBport_associate()\fR and \fBport_dissociate()\fR functions will fail if:
 162  159  .sp
 163  160  .ne 2
 164  161  .na
 165  162  \fB\fBEBADF\fR\fR
 166  163  .ad
 167  164  .RS 10n
 168  165  The \fIport\fR identifier is not valid.
 169  166  .RE
↓ open down ↓ 229 lines elided ↑ open up ↑
 399  396  
 400  397  /* check error code and return value in
 401  398  my_errno = aio_error(aiocbp);
 402  399  \&...
 403  400  my_status = aio_return(aiocbp);
 404  401  \&...
 405  402  .fi
 406  403  .in -2
 407  404  
 408  405  .SH ATTRIBUTES
 409      -.sp
 410  406  .LP
 411  407  See \fBattributes\fR(5) for descriptions of the following attributes:
 412  408  .sp
 413  409  
 414  410  .sp
 415  411  .TS
 416  412  box;
 417  413  c | c
 418  414  l | l .
 419  415  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 420  416  _
 421  417  Architecture    all
 422  418  _
 423  419  Interface Stability     Committed
 424  420  _
 425  421  MT-Level        Safe
 426  422  .TE
 427  423  
 428  424  .SH SEE ALSO
 429      -.sp
 430  425  .LP
 431  426  \fBrctladm\fR(1M), \fBpoll\fR(2), \fBsetrctl\fR(2), \fBport_alert\fR(3C),
 432  427  \fBport_create\fR(3C), \fBport_get\fR(3C), \fBport_send\fR(3C),
 433  428  \fBsignal.h\fR(3HEAD), \fBattributes\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX