Print this page
12202 noise in example code in some section 3pool man pages

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3pool/pool_get_binding.3pool.man.txt
          +++ new/usr/src/man/man3pool/pool_get_binding.3pool.man.txt
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37         can exist that are not associated with a pool.
  38   38  
  39   39  
  40   40         The pool_set_binding() function binds the processes matching idtype and
  41   41         id to the resources associated with pool on the running system.  This
  42   42         function requires the privilege required by the underlying resource
  43   43         types referenced by the pool; generally, this requirement is equivalent
  44   44         to requiring superuser privilege.
  45   45  
  46   46  
  47      -       The idtype parameter can be of the following types:
       47 +       The idtype parameter can be one of the following types:
  48   48  
  49   49         P_PID
  50   50                     The id parameter is a pid.
  51   51  
  52   52  
  53   53         P_TASKID
  54   54                     The id parameter is a taskid.
  55   55  
  56   56  
  57   57         P_PROJID
  58   58                     The id parameter is a project ID. All currently running
  59   59                     processes belonging to the given project will be bound to
  60   60                     the pool's resources.
  61   61  
  62   62  
  63   63  
  64   64         The pool_get_resource_binding() function returns the name of the
  65   65         resource of the supplied type to which the supplied process is bound.
  66   66  
  67   67  
  68      -       The application must explicity free the memory allocated for the return
  69      -       values for pool_get_binding() and pool_get_resource_binding().
       68 +       The application must explicitly free the memory allocated for the
       69 +       return values for pool_get_binding() and pool_get_resource_binding().
  70   70  
  71   71  RETURN VALUES
  72   72         Upon successful completion, pool_get_binding() returns the name of the
  73   73         pool to which the process is bound. Otherwise it returns NULL and
  74   74         pool_error(3POOL) returns the pool-specific error value.
  75   75  
  76   76  
  77   77         Upon successful completion, pool_set_binding() returns PO_SUCCESS.
  78   78         Otherwise, it returns PO_FAIL and pool_error() returns the pool-
  79   79         specific error value.
↓ open down ↓ 63 lines elided ↑ open up ↑
 143  143           #include <pool.h>
 144  144           #include <unistd.h>
 145  145  
 146  146           ...
 147  147  
 148  148           id_t pid = getpid();
 149  149  
 150  150           ...
 151  151  
 152  152           if (pool_set_binding("target", P_PID, pid) == PO_FAIL)
 153      -                 (void) fprintf(stderr, "pool binding failed (\%d)\B{}n",
      153 +                 (void) fprintf(stderr, "pool binding failed (%d)\n",
 154  154                            pool_error());
 155  155  
 156  156  
 157  157  
 158  158  ATTRIBUTES
 159  159         See attributes(5) for descriptions of the following attributes:
 160  160  
 161  161  
 162  162  
 163  163  
↓ open down ↓ 5 lines elided ↑ open up ↑
 169  169         |Interface Stability | Unstable        |
 170  170         +--------------------+-----------------+
 171  171         |MT-Level            | Safe            |
 172  172         +--------------------+-----------------+
 173  173  
 174  174  SEE ALSO
 175  175         libpool(3LIB), pool_error(3POOL), attributes(5)
 176  176  
 177  177  
 178  178  
 179      -                                March 27, 2007         POOL_GET_BINDING(3POOL)
      179 +                               January 18, 2020        POOL_GET_BINDING(3POOL)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX