Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Pool Configuration Manipulation Library Functionspool_dynamic_location(3POOL)


NAME

 pool_dynamic_location, pool_static_location, pool_version - resource pool framework functions

SYNOPSIS

 
cc [ flag... ] file... -lpool [ library... ] 
#include <pool.h>
const char *pool_dynamic_location(void);
 const char *pool_static_location(void);
 uint_t pool_version(uint_t ver);

DESCRIPTION

 

The pool_dynamic_location() function returns the location used by the pools framework to store the dynamic configuration.

The pool_static_location() function returns the location used by the pools framework to store the default configuration used for pools framework instantiation.

The pool_version() function may be used to enquire about the version number of the library by specifying POOL_VER_NONE. The current (most capable) version is POOL_VER_CURRENT. The user can set the version used by the library by specifying the required version number. If this is not possible, the version returned will be POOL_VER_NONE.

RETURN VALUES

 

The pool_dynamic_location() function returns the location used by the pools framework to store the dynamic configuration.

The pool_static_location() function returns the location used by the pools framework to store the default configuration used for pools framework instantiation.

The pool_version() function returns the version number of the library or POOL_VER_NONE.

ERRORS

 

No errors are defined.

EXAMPLES

 Example 1. Get the static location used by the pools framework.
 
 
#include sys/types.h>
#include <pool.h>
#include <unistd.h>
 
...
 
const char *location = pool_dynamic_location(); pid = getpid();
 
...
 
        (void) fprintf(stderr, "pool dynamic location is \%s\B{}n",
           location);

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
CSIEnabled
Interface StabilityUnstable
MT-LevelUnsafe

SEE ALSO

 

libpool(3LIB), pool_error(3POOL), attributes(5)


SunOS 5.9Go To TopLast Changed 20 Dec 2001

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.