Qore Sysconf Module  1.0.0
Sysconf Functions

Functions

string Qore::Sysconf::confstr (int param)
 Get string-valued parameters from the operating system. More...
 
hash Qore::Sysconf::confstr_constants ()
 Returns a hash with allowed arguments to confstr call. More...
 
int Qore::Sysconf::pathconf (string filename, int param)
 This function is used to inquire about the limits that apply to the file named filename. More...
 
hash Qore::Sysconf::pathconf_constants ()
 Returns a hash with allowed arguments to pathconf call. More...
 
int Qore::Sysconf::sysconf (int param)
 This function is used to inquire about runtime system parameters. More...
 
hash Qore::Sysconf::sysconf_constants ()
 Returns a hash with allowed arguments to sysconf call. More...
 

Detailed Description

Function Documentation

string Qore::Sysconf::confstr ( int  param)

Get string-valued parameters from the operating system.

Code Flags:
RET_VALUE_ONLY
Parameters
paramThe parameter argument should be one of the Confstr Constants
Returns
A string with requested value.
Exceptions
CONFSTR-ERRO
hash Qore::Sysconf::confstr_constants ( )

Returns a hash with allowed arguments to confstr call.

Code Flags:
CONSTANT
Returns
hash with all available arguments for confstr
The hash has structure: constant name (string) - integer value
int Qore::Sysconf::pathconf ( string  filename,
int  param 
)

This function is used to inquire about the limits that apply to the file named filename.

Code Flags:
RET_VALUE_ONLY
Parameters
filenamea path to file
paramThe parameter argument should be one of the Pathconf Constants
Returns
The normal return value from pathconf is the value you requested. A value of -1 is returned both if the implementation does not impose a limit.
Exceptions
PATHCONF-ERROR
hash Qore::Sysconf::pathconf_constants ( )

Returns a hash with allowed arguments to pathconf call.

Code Flags:
CONSTANT
Returns
hash with all available arguments for pathconf
The hash has structure: constant name (string) - integer value
int Qore::Sysconf::sysconf ( int  param)

This function is used to inquire about runtime system parameters.

Code Flags:
RET_VALUE_ONLY
Parameters
paramThe parameter argument should be one of the Sysconf Constants
Returns
The normal return value from sysconf is the value you requested. A value of -1 is returned both if the implementation does not impose a limit.
Exceptions
SYSCONF-ERROR
hash Qore::Sysconf::sysconf_constants ( )

Returns a hash with allowed arguments to sysconf call.

Code Flags:
CONSTANT
Returns
hash with all available arguments for sysconf
The hash has structure: constant name (string) - integer value