Option Constants

## Variables

const | Qore::Option::HAVE_ATOMIC_OPERATIONS = bool(QORE_CONST_HAVE_ATOMIC_MACROS)
| Indicates if the Qore library supports fast atomic reference counting. More...
const | Qore::Option::HAVE_CLOSE_ALL_FD = bool(QORE_CONST_HAVE_CLOSE_ALL_FD)
| Indicates if the close_all_fd() function is available.
const | Qore::Option::HAVE_DETERMINISTIC_GC = bool(1)
| Indicates if the Qore library supports deterministic garbage collection for managing circular references between objects.
const | Qore::Option::HAVE_DSS = bool(QORE_CONST_HAVE_DSS)
| Indicates if the openssl library used to build the qore library supported the outdated DSS and DSS1 digest algorithms and therefore if the DSS(), DSS1(), DSS_bin(), DSS1_bin(), DSS_HMAC(), and DSS1_HMAC() functions are available.
const | Qore::Option::HAVE_FILE_LOCKING = bool(QORE_CONST_HAVE_STRUCT_FLOCK)
| Indicates if the Qore library supports file locking; currently this depends on UNIX-style file locking with the fnctl() function. More...
const | Qore::Option::HAVE_FORK = bool(QORE_CONST_HAVE_FORK)
| Indicates if the fork() function is available. More...
const | Qore::Option::HAVE_GETPPID = bool(QORE_CONST_HAVE_GETPPID)
| Indicates if the getppid() function is available. More...
const | Qore::Option::HAVE_IS_EXECUTABLE = bool(QORE_CONST_HAVE_PWD_H)
| Indicates if the Qore library supports the is_executable() function. More...
const | Qore::Option::HAVE_KILL = bool(QORE_CONST_HAVE_KILL)
| Indicates if the kill() function is available. More...
const | Qore::Option::HAVE_LIBRARY_DEBUGGING = bool(QORE_CONST_DEBUG)
| Indicates if the Qore library has been built with debugging enabled.
const | Qore::Option::HAVE_MD2 = bool(QORE_CONST_HAVE_MD2)
| Indicates if the openssl library used to build the qore library supported the MD2 algorithm and therefore if the MD2() and MD2_bin() functions are available.
const | Qore::Option::HAVE_MDC2 = bool(QORE_CONST_HAVE_MDC2)
| Indicates if the openssl library used to build the qore library supported the MDC2 algorithm and therefore if the MDC2() and MDC2_bin() functions are available.
const | Qore::Option::HAVE_RC5 = bool(QORE_CONST_HAVE_RC5)
| Indicates if the openssl library used to build the qore library supported the RC5 encryption algorithm and therefore if the rc5_encrypt_cbc(), rc5_decrypt_cbc() and rc5_encrypt_cbc_to_string() functions are available.
const | Qore::Option::HAVE_ROUND = bool(QORE_CONST_HAVE_ROUND)
| Indicates if the round() function is available; the availability of this function depends on the presence of the C-library's round() function.
const | Qore::Option::HAVE_RUNTIME_THREAD_STACK_TRACE = bool(QORE_CONST_QORE_RUNTIME_THREAD_STACK_TRACE)
| Indicates if active thread stack tracing has been enabled as a debugging option and if the getAllThreadCallStacks() function is available.
const | Qore::Option::HAVE_SETEGID = bool(QORE_CONST_HAVE_SETEGID)
| Indicates if the setegid() function is available; the availabilty of this function depends on the system's underlying C-library. More...
const | Qore::Option::HAVE_SETEUID = bool(QORE_CONST_HAVE_SETEUID)
| Indicates if the seteuid() function is available; the availabilty of this function depends on the system's underlying C-library. More...
const | Qore::Option::HAVE_SETSID = bool(QORE_CONST_HAVE_SETSID)
| Indicates if the setsid() function is available. More...
const | Qore::Option::HAVE_SHA = bool(QORE_CONST_HAVE_SHA)
| Indicates if the openssl library used to build the qore library supported the SHA0 algorithm and therefore if the SHA() and SHA_bin() functions are available.
const | Qore::Option::HAVE_SHA224 = bool(QORE_CONST_HAVE_SHA256)
| Indicates if the openssl library used to build the qore library supported the SHA224 algorithm and therefore if the SHA224() and SHA224_bin() functions are available.
const | Qore::Option::HAVE_SHA256 = bool(QORE_CONST_HAVE_SHA256)
| Indicates if the openssl library used to build the qore library supported the SHA256 algorithm and therefore if the SHA256() and SHA256_bin() functions are available.
const | Qore::Option::HAVE_SHA384 = bool(QORE_CONST_HAVE_SHA512)
| Indicates if the openssl library used to build the qore library supported the SHA384 algorithm and therefore if the SHA384() and SHA384_bin() functions are available.
const | Qore::Option::HAVE_SHA512 = bool(QORE_CONST_HAVE_SHA512)
| Indicates if the openssl library used to build the qore library supported the SHA512 algorithm and therefore if the SHA512() and SHA512_bin() functions are available.
const | Qore::Option::HAVE_SIGNAL_HANDLING = qore(get_bool_node(QORE_CONST_HAVE_SIGNAL_HANDLING && !(qore_library_options & QLO_DISABLE_SIGNAL_HANDLING)))
| Indicates if UNIX-style signal handling is available. More...
const | Qore::Option::HAVE_STACK_GUARD = bool(QORE_CONST_HAVE_CHECK_STACK_POS)
| Indicates if protection against stack overruns is provided.
const | Qore::Option::HAVE_STATVFS = bool(QORE_CONST_Q_HAVE_STATVFS)
| Indicates if the statvfs() function is available.
const | Qore::Option::HAVE_SYMLINK = bool(QORE_CONST_HAVE_SYMLINK)
| Indicates if the symlink() function is available. More...
const | Qore::Option::HAVE_SYSTEM = bool(QORE_CONST_HAVE_SYSTEM)
| Indicates if the system() function is available.
const | Qore::Option::HAVE_TERMIOS = bool(QORE_CONST_HAVE_TERMIOS_H)
| Indicates if the TermIOS class is available. More...
const | Qore::Option::HAVE_UNIX_FILEMGT = bool(QORE_CONST_HAVE_CHOWN)
| Indicates if UNIX-style file management functionality is available (ex: chown(), Dir::chgrp(), etc) More...
const | Qore::Option::HAVE_UNIX_USERMGT = bool(QORE_CONST_HAVE_GETUID)
| Indicates if UNIX-style user management functionality is available (ex: getuid(), setuid(), getgid(), setgid(), etc) More...

## Detailed Description

Option constants

## Variable Documentation

## HAVE_ATOMIC_OPERATIONS

const Qore::Option::HAVE_ATOMIC_OPERATIONS = bool(QORE_CONST_HAVE_ATOMIC_MACROS)

Indicates if the Qore library supports fast atomic reference counting.

Note that if this constant is False, atomic operations are supported by mutexes and are therefore slower than with native atomic reference counting operations

## HAVE_FILE_LOCKING

const Qore::Option::HAVE_FILE_LOCKING = bool(QORE_CONST_HAVE_STRUCT_FLOCK)

Indicates if the Qore library supports file locking; currently this depends on UNIX-style file locking with the fnctl() function.

Note
  Currently this function is only available when running on UNIX or UNIX-like platforms

## HAVE_FORK

const Qore::Option::HAVE_FORK = bool(QORE_CONST_HAVE_FORK)

Indicates if the fork() function is available.

Note
  This constant is always False on native Windows ports

## HAVE_GETPPID

const Qore::Option::HAVE_GETPPID = bool(QORE_CONST_HAVE_GETPPID)

Indicates if the getppid() function is available.

Note
  This constant is always False on native Windows ports

## HAVE_IS_EXECUTABLE

const Qore::Option::HAVE_IS_EXECUTABLE = bool(QORE_CONST_HAVE_PWD_H)

Indicates if the Qore library supports the is_executable() function.

Note
  Currently this function is only available when running on UNIX or UNIX-like platforms

## HAVE_KILL

const Qore::Option::HAVE_KILL = bool(QORE_CONST_HAVE_KILL)

Indicates if the kill() function is available.

Note
  This constant is always False on native Windows ports

## HAVE_SETEGID

const Qore::Option::HAVE_SETEGID = bool(QORE_CONST_HAVE_SETEGID)

Indicates if the setegid() function is available; the availabilty of this function depends on the system's underlying C-library.

Note
  This constant is always False on native Windows ports

## HAVE_SETEUID

const Qore::Option::HAVE_SETEUID = bool(QORE_CONST_HAVE_SETEUID)

Indicates if the seteuid() function is available; the availabilty of this function depends on the system's underlying C-library.

Note
  This constant is always False on native Windows ports

## HAVE_SETSID

const Qore::Option::HAVE_SETSID = bool(QORE_CONST_HAVE_SETSID)

Indicates if the setsid() function is available.

Note
  This constant is always False on native Windows ports

## HAVE_SIGNAL_HANDLING

const Qore::Option::HAVE_SIGNAL_HANDLING = qore(get_bool_node(QORE_CONST_HAVE_SIGNAL_HANDLING && !(qore_library_options & QLO_DISABLE_SIGNAL_HANDLING)))

Indicates if UNIX-style signal handling is available.

If this constant is False, then the set_signal_handler() and remove_signal_handler() functions are not available.

Note
  This constant is always False on native Windows ports and is also False if the qore library was initialized with signals disabled (such as with `qore -b` or `qore –disable-signals`)

See also
  Signal Handling

## HAVE_SYMLINK

const Qore::Option::HAVE_SYMLINK = bool(QORE_CONST_HAVE_SYMLINK)

Indicates if the symlink() function is available.

Note
  This constant is always False on native Windows ports

Since
  Qore 0.8.6 although the symlink() function was added in 0.8.5

## HAVE_TERMIOS

const Qore::Option::HAVE_TERMIOS = bool(QORE_CONST_HAVE_TERMIOS_H)

Indicates if the TermIOS class is available.

Note
  This constant is always False on native Windows ports

## HAVE_UNIX_FILEMGT

const Qore::Option::HAVE_UNIX_FILEMGT = bool(QORE_CONST_HAVE_CHOWN)

Indicates if UNIX-style file management functionality is available (ex: chown(), Dir::chgrp(), etc)

Note
  This constant is always False on native Windows ports

## HAVE_UNIX_USERMGT

const Qore::Option::HAVE_UNIX_USERMGT = bool(QORE_CONST_HAVE_GETUID)

Indicates if UNIX-style user management functionality is available (ex: getuid(), setuid(), getgid(), setgid(), etc)

Note
  This constant is always False on native Windows ports