Print this page
12202 noise in example code in some section 3pool man pages
   1 '\" te
   2 .\" Copyright (c) 2003, 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 POOL_RESOURCE_CREATE 3POOL "January 15, 2020"
   7 .SH NAME
   8 pool_resource_create, pool_resource_destroy, pool_resource_info,
   9 pool_query_resource_components, pool_resource_transfer, pool_resource_xtransfer
  10 \- resource pool resource manipulation functions
  11 .SH SYNOPSIS
  12 .nf
  13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpool\fR [ \fIlibrary\fR\&.\|.\|. ]
  14 #include <pool.h>
  15 
  16 \fBpool_resource_t *\fR\fBpool_resource_create\fR(\fBpool_conf_t *\fR\fIconf\fR,
  17      \fBconst char *\fR\fItype\fR, \fBconst char *\fR\fIname\fR);
  18 .fi
  19 
  20 .LP
  21 .nf
  22 \fBint\fR \fBpool_resource_destroy\fR(\fBpool_conf_t *\fR\fIconf\fR,
  23      \fBpool_resource_t *\fR\fIresource\fR);
  24 .fi
  25 
  26 .LP


 282 .RS 20n
 283 A system error has occurred. Check the system error code for more details.
 284 .RE
 285 
 286 .SH EXAMPLES
 287 \fBExample 1 \fRCreate a new resource of type \fBpset\fR named \fBfoo\fR.
 288 .sp
 289 .in +2
 290 .nf
 291 #include <pool.h>
 292 #include <stdio.h>
 293 
 294 \&...
 295 
 296 pool_conf_t *conf;
 297 pool_resource_t *resource;
 298 \&...
 299 
 300 if ((resource = pool_resource_create(conf, "pset",
 301     "foo")) == NULL) {
 302     (void) fprintf(stderr, "Cannot create resource\\B{}n");
 303     ...
 304 }
 305 .fi
 306 .in -2
 307 
 308 .SH ATTRIBUTES
 309 See \fBattributes\fR(5) for descriptions of the following attributes:
 310 .sp
 311 
 312 .sp
 313 .TS
 314 box;
 315 c | c
 316 l | l .
 317 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 318 _
 319 CSI     Enabled
 320 _
 321 Interface Stability     Unstable
 322 _
   1 '\" te
   2 .\" Copyright (c) 2003, 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 POOL_RESOURCE_CREATE 3POOL "January 18, 2020"
   7 .SH NAME
   8 pool_resource_create, pool_resource_destroy, pool_resource_info,
   9 pool_query_resource_components, pool_resource_transfer, pool_resource_xtransfer
  10 \- resource pool resource manipulation functions
  11 .SH SYNOPSIS
  12 .nf
  13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpool\fR [ \fIlibrary\fR\&.\|.\|. ]
  14 #include <pool.h>
  15 
  16 \fBpool_resource_t *\fR\fBpool_resource_create\fR(\fBpool_conf_t *\fR\fIconf\fR,
  17      \fBconst char *\fR\fItype\fR, \fBconst char *\fR\fIname\fR);
  18 .fi
  19 
  20 .LP
  21 .nf
  22 \fBint\fR \fBpool_resource_destroy\fR(\fBpool_conf_t *\fR\fIconf\fR,
  23      \fBpool_resource_t *\fR\fIresource\fR);
  24 .fi
  25 
  26 .LP


 282 .RS 20n
 283 A system error has occurred. Check the system error code for more details.
 284 .RE
 285 
 286 .SH EXAMPLES
 287 \fBExample 1 \fRCreate a new resource of type \fBpset\fR named \fBfoo\fR.
 288 .sp
 289 .in +2
 290 .nf
 291 #include <pool.h>
 292 #include <stdio.h>
 293 
 294 \&...
 295 
 296 pool_conf_t *conf;
 297 pool_resource_t *resource;
 298 \&...
 299 
 300 if ((resource = pool_resource_create(conf, "pset",
 301     "foo")) == NULL) {
 302     (void) fprintf(stderr, "Cannot create resource\\n");
 303     ...
 304 }
 305 .fi
 306 .in -2
 307 
 308 .SH ATTRIBUTES
 309 See \fBattributes\fR(5) for descriptions of the following attributes:
 310 .sp
 311 
 312 .sp
 313 .TS
 314 box;
 315 c | c
 316 l | l .
 317 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 318 _
 319 CSI     Enabled
 320 _
 321 Interface Stability     Unstable
 322 _