Scroll to navigation

PMIX_INFO_TRUE(3) OpenPMIx PMIX_INFO_TRUE(3)

PMIx_Info_true — Interpret the value of a pmix_info_t(5) <#man5-pmix-info-t> as a boolean

SYNOPSIS

#include <pmix.h>
pmix_boolean_t PMIx_Info_true(const pmix_info_t *p);


Python Syntax

No Python equivalent

INPUT PARAMETERS

•
p: Pointer to the pmix_info_t(5) <#man5-pmix-info-t> structure whose value is to be examined.

DESCRIPTION

The PMIx_Info_true function examines the value carried by an info structure and reports its boolean interpretation. It is a convenience for the common case where the presence of a key conveys a boolean directive.

The value is interpreted as follows:

  • A value type of PMIX_UNDEF is treated as true — the mere presence of the key defaults to indicating “true”.
  • A PMIX_BOOL value reports its stored flag directly.
  • A PMIX_STRING value is parsed leniently. An empty or all-whitespace string is true; a numeric string is false if it evaluates to zero and true otherwise; the words yes, true, y, t, and enable (case insensitive, matched by prefix) are true, while no, false, n, f, and disable are false.
  • Any other value — including a string that matches none of the recognized tokens — is reported as non-boolean.

RETURN VALUE

Returns a pmix_boolean_t(5) <#man5-pmix-boolean-t> enumerated value:

  • PMIX_BOOL_TRUE: the value was interpreted as boolean true.
  • PMIX_BOOL_FALSE: the value was interpreted as boolean false.
  • PMIX_NON_BOOL: the value could not be interpreted as a boolean.

Callers must distinguish all three results — in particular, PMIX_NON_BOOL must not be treated as equivalent to PMIX_BOOL_FALSE.

NOTES

PMIx_Info_true is the OpenPMIx routine underlying the historical PMIX_INFO_TRUE macro, which is retained in pmix_deprecated.h for backward compatibility. Note that the macro form yields a plain C boolean (true only when the result is PMIX_BOOL_TRUE), whereas this function returns the full three-valued pmix_boolean_t(5) <#man5-pmix-boolean-t>.

See also:

PMIx_Info_load(3) <#man3-pmix-info-load>, pmix_info_t(5) <#man5-pmix-info-t>, pmix_boolean_t(5) <#man5-pmix-boolean-t>, pmix_value_t(5) <#man5-pmix-value-t>


Copyright

2014-2026, OpenPMIx Community

September 27, 2026